const expect=require('chai').expect;

describe('odd-even',()=>{
    var odd,even;
    before((done)=>{
        setTimeout(()=>{
            odd=[1,3,5];
            even=[2,4,6];
            if(Math.random()<0.5)return done(new Error('Timeout'));
            done();
        },Math.random()*1000|0);

    });
    
    it('odd',()=>{
        odd.forEach((n)=>{
            expect(n%2).equal(1);
        });
    });

    it('even',()=>{
        even.forEach((n)=>{
            expect(n%2).equal(0);
        });
    });
});